package com.book.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wx
 * @since 2023-10-13 18:04:30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_book")
public class TBook implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("synopsis")
    private String synopsis;

    @TableField("author_id")
    private Long authorId;

    @TableField("image")
    private String image;

    @TableField("type_id")
    private Long typeId;

    @TableField("update_time")
    private Date updateTime;

    @TableField("creat_time")
    private Date creatTime;

    @TableField("book_count")
    private Integer bookCount;

    /**
     * 1.免费 2.限时免费 3.收费
     */
    @TableField("free")
    private String free;

    @TableField("w_status")
    private String wStatus;

    @TableField("s_status")
    private String sStatus;

    @TableField("addr1")
    private Integer addr1;

    @TableField("addr2")
    private Integer addr2;

    @TableField("addr3")
    private String addr3;

    @TableField("addr4")
    private String addr4;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String SYNOPSIS = "synopsis";

    public static final String AUTHOR_ID = "author_id";

    public static final String IMAGE = "image";

    public static final String TYPE_ID = "type_id";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREAT_TIME = "creat_time";

    public static final String BOOK_COUNT = "book_count";

    public static final String FREE = "free";

    public static final String W_STATUS = "w_status";

    public static final String S_STATUS = "s_status";

    public static final String ADDR1 = "addr1";

    public static final String ADDR2 = "addr2";

    public static final String ADDR3 = "addr3";

    public static final String ADDR4 = "addr4";

}
